//
//  LXMainViewController.m
//  灵秀
//
//  Created by 李田 on 17/3/18.
//  Copyright © 2017年 tianyao. All rights reserved.
//

#import "LXMainViewController.h"
#import "LXHomeViewController.h"
@interface LXMainViewController ()

@end

@implementation LXMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

#pragma mark - 1.0 搭建界面
- (void)setupUI {
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeContactAdd];
    
    btn.center = self.view.center;
    
    [btn addTarget:self action:@selector(addVcAction:) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:btn];
    
    [self addVcAction:btn];
}

#pragma mark - 2.0 button的点击事件
- (void)addVcAction: (UIButton *)sender {
    
    LXHomeViewController *homeVc = [[LXHomeViewController alloc] init];
    [self.navigationController pushViewController:homeVc animated:YES];
}
@end
